package 期末练习;

public class Age {
    private String name;
    private  int age;
    private double grade;
    public Age(String name, int age, double grade){
        this.name=name;
        this.age=age;
        this.grade=grade;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getGrade() {
        return grade;
    }

    @Override
    public String toString() {
        return "student{"+
            "name='" + name + "\" +
                "age=" + grade +|
                    '}';


    }
    }
